<script lang="ts" setup name="HomePanel">
defineProps<{
  title?: string
  subTitle?: string
}>()
</script>

<template>
  <div class="home-panel">
    <div class="container">
      <div class="head">
        <h3>{{ title }}<small>{{ subTitle }}</small></h3>
        <slot name="right"></slot>
      </div>
      <slot name="content"></slot>
    </div>
  </div>
</template>

<style lang="less" scoped>
.home-panel {
  background-color: #fff;

  .head {
    margin-top: 10px;
    padding: 40px 0;
    display: flex;
    align-items: flex-end;

    h3 {
      flex: 1;
      font-size: 32px;
      font-weight: normal;
      margin-left: 6px;
      height: 35px;
      line-height: 35px;

      small {
        font-size: 16px;
        color: #999;
        margin-left: 20px;
      }
    }
  }
}
</style>